<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>单位工程管理</title>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/project/subProject/list?projectId=${subProject.project.id}">单位工程列表</a></li>
		<c:if test="${not empty subProject and not empty subProject.project and not empty subProject.project.id}">
			<li><a href="${ctx}/project/subProject/form?projectId=${subProject.project.id}">单位工程添加</a></li>
		</c:if>
	</ul>
	<form:form id="searchForm" modelAttribute="subProject"
		action="${ctx}/project/subProject/list" method="post" class="breadcrumb form-search">
		<input name="subProject.project.id" type="hidden" value="${subProject.project.id}" />
	</form:form>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				 <th>编号</th>
				<th>工程名称</th>
				<th>缩写</th>
				<th>技术人员</th>
				<th>资料员</th>
				<th>施工经理</th>
				<th>评片人员</th>
				<th>委托方技术员</th>
				<th>监理人员</th>
				 <th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="sub">
				<tr>
					<td>${sub.bh}</td>
					<td><a href="${ctx}/project/subProject/form?id=${sub.id}">${sub.name}</a></td>
					<td>${sub.suoxie}</td>
					<td>${sub.jsry}</td>
					<td>${sub.zly}</td>
					<td>${sub.sgjl}</td>
					<td>${sub.ppry}</td>
					<td>${sub.wtfjsy}</td>
					<td>${sub.jlry}</td>
					<td><a href="${ctx}/project/subProject/form?id=${sub.id}">修改</a> <a
						href="${ctx}/project/subProject/delete?id=${sub.id}"
						onclick="return confirmx('确认要删除该单位工程吗？', this.href)">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

</body>
</html>